#include "stdBurstLib.h"

stdBurstLib* stdBurstLib::_instance = 0;

stdBurstLib* stdBurstLib::Instance()
{
	if (_instance == NULL)
	{
		_instance = new stdBurstLib();
	}
	return _instance;
}

stdBurstLib::stdBurstLib()
{
	string str;
	ifstream infile;
	infile.open("gameinformation/burstInformation/list.txt");
	while (getline(infile, str))
	{
		_std.push_back(stdBurst(str));
	}
}

stdBurst stdBurstLib::getBurst(int i)
{
	if (i < _std.size())
	{
		return _std[i];
	}	
	cout << "error";
	exit(1);
}